<?php
/**
 * The html template file of index method of index module of zentaoPHP.
 *
 * The author disclaims copyright to this source code.  In place of
 * a legal notice, here is a blessing:
 *
 *  May you do good and not evil.
 *  May you find forgiveness for yourself and forgive others.
 *  May you share freely, never taking more than you give.
 */
?>
<?php include '../../common/view/header.html.php';?>
<style>
  .center{text-align: center;}
</style>
<table class='table with-border'>
  <thead>
  <tr class='colhead'>
    <th class='w-150px'><?php echo $lang->organization->unitname;?></th>
    <th class='w-150px'><?php echo $lang->organization->username;?></th>
    <th class='w-150px'><?php echo $lang->organization->police_number;?></th>
    <th class='w-150px'><?php echo $lang->organization->sex;?></th>
    <th class='w-150px'><?php echo $lang->organization->position;?></th>
    <th class='w-150px'><?php echo $lang->organization->leadership;?></th>
    <th class='w-150px'><?php echo $lang->organization->mobile;?></th>
  </tr>
  </thead>
  <tbody>
  <?php foreach($user as $val) :?>
    <tr>
      <td class="center"><?php echo $val->unit_name; ?></td>
      <td class="center"><?php echo $val->name; ?></td>
      <td class="center"><?php echo $val->police_number; ?></td>
      <td class="center"><?php echo $lang->organization->sexlist[$val->sex]; ?></td>
      <td class="center"><?php echo $val->position; ?></td>
      <td class="center"><?php echo $lang->organization->leader[$val->leadership]; ?></td>
      <td class="center"><?php echo $val->mobile; ?></td>
    </tr>
  <?php endforeach ?>

  </tbody>
  <tfoot>
  <tr>
    <td colspan='10'>
      <?php
      $pager->show('right', 'full');
      ?>
    </td></tr></tfoot>
</table>

<?php include '../../common/view/footer.html.php';?>
